<!-- photo and links of adv owner -->
<div class="grid_7">
  <div class="place-head">
    <h2><?php echo $infojabotabek['single']['place']['Place']['name'];?></h2>
    <p class="place-taxon">
      Kategori <a href="#">Kuliner</a>, di
      <?php
        echo $html->link($place['Place']['city'],
            array('action' => 'city', $place['Place']['city']));
      ?>
    </p>
  </div>
  <div class="place-logo">
    <img src="<?php echo $infojabotabek['images_url_relative_path'] .
                         $infojabotabek['images_resized_prefix'] .
                         $place['Place']['logo_filename'];?>" />
  </div>
</div>
<!-- info of adv owner -->
<div class="grid_5">
  <div class="place-links">
    <!-- Lockerz Share BEGIN -->
    <a class="a2a_dd" href="http://www.addtoany.com/share_save?linkurl=Page%20url&amp;linkname=Page%20name">
      <img src="http://static.addtoany.com/buttons/share_save_256_24.png" width="256" height="24" border="0" alt="Share"/>
    </a>
    <script type="text/javascript">
    var a2a_config = a2a_config || {};
    a2a_config.linkname = "<?php echo $infojabotabek['site_name'];?>";
    a2a_config.linkurl  = "<?php echo $infojabotabek['current_url'];?>";
    a2a_config.locale   = "id";
    </script>
    <script type="text/javascript" src="http://static.addtoany.com/menu/page.js"></script>
    <!-- Lockerz Share END -->
    <script type="text/javascript">
    function popupUrl(url) {
      newwindow=window.open(url,'name','height=570,width=960');
      if (window.focus) {newwindow.focus()}
      return false;
    }
    </script>
    <span class="print">
        <a onclick="return popupUrl('<?php echo $infojabotabek['current_path'];?>/print');" href="<?php echo $infojabotabek['current_path'];?>/print">print listing</a>
    </span>
    <span class="pdf"><a onclick="return popUrl('http://pdfmyurl.com/?url=escape(<?php echo $infojabotabek['current_url'];?>)');" href="http://pdfmyurl.com/?url=<?php echo $infojabotabek['current_url'];?>">get listing in pdf</a></span>
    <span class="friend"><a onclick="return popUrl('http://www.addtoany.com/email?linkurl=<?php echo $infojabotabek['current_url'];?>');" href="http://www.addtoany.com/email?linkurl=<?php echo $infojabotabek['current_url'];?>">email ke teman</a></span>
    <span class="map"><a href="#map-container">Peta lokasi</a></span>
    <span class="reviews"><a href="#dsq-content">Komentar</a></span>
  </div>
</div>
<div class="clear"></div>

<!-- description and information -->
<div class="grid_12">
  <div class="single-page">
    <div class="place-description-single">
      <h3>Deskripsi</h3>
      <?php echo $infojabotabek['single']['place']['Place']['description'];?>
    </div>

    <?php $total_img = count($place['PlaceImage']);?>
    <?php if ($total_img): ?>
    <div class="place-photo-gallery">
      <h3>Galeri Photo</h3>
      <div class="photo-gallery-container">
        <a class="prev browse left"></a>
        <div id="photo-gallery">
          <div class="items">
            <?php
              $j = 0;
              while ($j < $total_img-1) {
                echo '<div>';
                for ($i = 0; $i < 5; $i++) {
                  if ($j == $total_img) {
                    break;
                  }
                  echo '<a href="#">';
                  echo '<img src="' .
                        $infojabotabek['images_url_relative_path'] .
                        $infojabotabek['images_thumb_prefix'] .
                        $place['PlaceImage'][$j++]['imagename'] .
                        '" />';
                  echo '</a>';
                }
                echo '</div>';
              }
            ?>
          </div><!-- /items -->
        </div><!-- /photo-gallery -->
        <a class="next browse right"></a>
        <div class="clear"></div>
      </div><!-- /photo-gallery-container -->
    </div>
    <script type="text/javascript">
    $(function(){
      $('#photo-gallery').scrollable();
    });
    </script>
    <?php endif;?>

    <?php $total_video = count($place['PlaceVideo']);?>
    <?php if ($total_video): ?>
    <div class="place-video-gallery">
      <h3>Video</h3>
      <div class="video-gallery-container">
        <a class="prev browse left"></a>
        <div id="video-gallery">
          <div class="items">
            <?php
              $j = 0;
              while ($j < $total_img-1) {
                echo '<div>';
                for ($i = 0; $i < 5; $i++) {
                  if ($j == $total_img) {
                    break;
                  }
                  echo '<a href="#">';
                  echo '<img src="' . $infojabotabek['youtube_prefix'] .
                        $place['PlaceVideo'][$j++]['youtube_id'] .
                        $infojabotabek['youtube_suffix'] .
                        '" />';
                  echo '</a>';
                }
                echo '</div>';
              }
            ?>
          </div><!-- /items -->
        </div><!-- /photo-gallery -->
        <a class="next browse right"></a>
        <div class="clear"></div>
      </div><!-- /photo-gallery-container -->
    </div>
    <?php endif;?>

    <div class="place-contact-information">
      <h3>Alamat dan Kontak</h3>
        <?php if (!empty($place['Place']['phone'])):?>
        <p class="contact-info">
          <span>Phone:</span><strong><?php echo $place['Place']['phone'];?></strong>
        </p>
        <?php endif;?>

        <?php if (!empty($place['Place']['fax'])):?>
        <p class="contact-info">
          <span>Fax:</span><strong><?php echo $place['Place']['fax'];?></strong>
        </p>
        <?php endif;?>

        <?php if (!empty($place['Place']['website'])):?>
        <p class="contact-info">
          <span>Website:</span><strong><?php echo $place['Place']['website'];?></strong>
        </p>
        <?php endif;?>

        <?php if (!empty($place['Place']['email'])):?>
        <p class="contact-info">
          <span>Email:</span><strong><?php echo $place['Place']['email'];?></strong>
        </p>
        <?php endif;?>

        <?php if ($place['Place']['lat'] && $place['Place']['lng']):?>
        <div id="map-container" class="small-map"></div>
        <?php endif;?>
    </div>
    <?php echo $this->element('single.comment');?>
  </div>
</div>
<div class="clear"></div>
